<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>hello</title>
<%@include file="/view/common/js-css.jsp" %>
</head>
<body>
		<a href="<%=request.getContextPath() %>/view/talent/login.jsp">求职者登录</a> | 
		<a href="<%=request.getContextPath() %>/view/talent/register.jsp">求职者注册</a> | 
		<a href="<%=request.getContextPath() %>/view/company/login.jsp">企业登录</a> | 
		<a href="<%=request.getContextPath() %>/view/company/register.jsp">企业注册</a>
		<center><h1>全部职位显示</h1></center>
		<hr>
		
		<c:forEach items="${positionList }" var="position">
			${position.companyName }　"${position.companySlogan }"<br>
			<a href="<%=request.getContextPath() %>/PositionServlet?command=detail&positionId=${position.id}">${position.name }</a>　￥${position.salary1 }-${position.salary2 }　${position.companyAddress }　${position.releaseTimeStr }<br><br>
		</c:forEach>
		<script>
		/**
		 * 操作提示
		 */
		 if ('${result}' === '1' || '${param.result}' === '1') {
			 layer.msg('操作成功~', {icon : 1}); 
		 }
		 if ('${result}' === '0' || '${param.result}' === '0') {
			 layer.msg('操作失败~', {icon : 2}); 
		 }
	</script>
</body>
</html>